/**
 * Title: AccountParam.java
 * Description: Copyright: Copyright (c) 2019 Company: BHFAE
 *
 * @author Sharp
 * @date 2019-7-27 23:17
 * @description Project Name: Grote
 * @Package: com.srct.service.account.constants
 */
package com.sharp.authorization.constants.param;

import com.sharp.kernel.constant.param.Param;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

@AllArgsConstructor
public enum AccountParam implements Param {
    /**
     *
     */
    TEST_MODE_VALIDATE_SWITCH("0", "0:0000可以通过,1正常验证"),
    TEST_MODE_VALIDATE_DEFAULT_CODE("0000", "默认通过校验code"),

    LOGIN_SINGLETON("1", "渠道单一用户登录控制"),

    APP_ACCESS_TOKEN_EXPIRED("43200", "APP access_token有效期"),
    APP_REFRESH_TOKEN_EXPIRED("604800", "APP refresh_token有效期"),
    WEB_ACCESS_TOKEN_EXPIRED("86400", "网页端access_token有效期"),
    WEB_REFRESH_TOKEN_EXPIRED("604800", "网页端refresh_token有效期"),
    WECHAT_TOKEN_EXPIRED("604800", "微信小程序 access_token有效期"),
    IOT_TOKEN_EXPIRED("604800", "IOT token有效期"),
    IOT_TOKEN_UPDATE_EXPIRED("604800", "IOT token期望更新周期"),
    PLATFORM_TOKEN_EXPIRED("604800", "开发接入平台Token有效期"),
    CHANGE_PWD_TOKEN_EXPIRED("86400", "修改密码有效期"),
    ACCOUNT_LOCK_MISTAKE_NUMBER("5", "密码输入错误锁定次数"),
    ACCOUNT_ADMIN_ROLE_ID("1", "系统管理员默认角色ID"),
    ACCOUNT_DEFAULT_ROLE_ID("2", "新注册用户默认角色ID"),
    ACCOUNT_LOCK_INTERVAL("14000", "密码错误锁定时间"),
    EMAIL_SET_PWD_TITLE("SHARP系统用户密码设置验证", "设置密码邮件标题"),
    EMAIL_SET_PWD_TEXT_FORMAT("请您点击下方地址完成账户密码设置\r\n%s", "设置密码邮件正文"),
    EMAIL_SET_PWD_CONFIRM_URL("http://sharp.51teqi.com/#/changePwd?userId=%s&token=%s", "邮件确认地址");

    @Getter
    @Setter
    private String defaultValue;

    @Getter
    @Setter
    private String remark;
}
